//
//  ZJQRCoder.h
//  ZXingUseDemo
//
//  Created by mac on 14-12-17.
//  Copyright (c) 2014年 zhang jian. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "ZXingObjC.h"
#import "ZJQRCoder.h"

@interface ZJQRCoder : NSObject

+(id)sharedInstance;

//编码
//传入文本和图片大小
-(UIImage *)encodeWithString:(NSString *)string size:(CGSize)size;

//解码 -- 使用图片
//
-(NSString *)decodeWithImage:(UIImage *)image;

//解码 -- 通过摄像头拍摄
-(void)startCaptureInView:(UIView *)view
               area:(CGRect)area
             action:(void (^)(UIImage *image, NSString *string))action;
-(void)stopCapture;


@end
